package qj.ps.sla.vfg;

import java.io.*;
import java.util.*;
import java.util.Map.Entry;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.servlet.*;
import javax.servlet.http.*;

import qj.util.IOUtil;

public class EspSimuFilter implements Filter {

	@Override
	public void destroy() {
		
	}

	@Override
	public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2) throws IOException,
			ServletException {
		HttpServletRequest req = (HttpServletRequest) arg0;
		System.out.println(req.getRequestURI());
		System.out.println(req.getQueryString());
		IOUtil.inputStreamToString(req.getInputStream());
	}

	@Override
	public void init(FilterConfig arg0) throws ServletException {
		System.out.println("Init.");
	}
}
